package com.bookocean.domain.constant;

/**
 * 互动目标类型常量
 * 
 * @author BookOcean
 * @since 2024-01-01
 */
public class TargetType {
    
    /**
     * 书摘
     */
    public static final int QUOTE = 1;
    
    /**
     * 小说
     */
    public static final int NOVEL = 2;
    
    /**
     * 章节
     */
    public static final int CHAPTER = 3;
    
    /**
     * 获取类型描述
     * 
     * @param type 类型
     * @return 描述
     */
    public static String getDescription(int type) {
        switch (type) {
            case QUOTE:
                return "书摘";
            case NOVEL:
                return "小说";
            case CHAPTER:
                return "章节";
            default:
                return "未知";
        }
    }
}
